<?php

use yii\db\Schema;
use yii\db\Migration;

class m150505_110029_update_video_adspace extends Migration
{
    public function up()
    {
    	$this->dropColumn('{{%video_adspace}}', 'form');
    	$this->renameColumn('{{%video_adspace}}', 'in_duration', 'min_duration');
    	$sql = "ALTER TABLE {{%video_adspace}} AUTO_INCREMENT=1000000"; 
    	$this->execute($sql);
    }

    public function down()
    {

    }
}
